﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.NewsCenter
{
    /// <summary>
    /// define image message object (NEWS_A5)
    /// </summary>
    public class MsImage
    {
        private string _picId;
        private byte[] _picContent;
        private string _picSize;
        private string _picType;
        private string _picDesc;
        private string _relatingType;
        private string _relatingId;

        public string PicId { set { _picId = value; } get { return ((!string.IsNullOrEmpty(_picId)) ? _picId : ""); } }

        public byte[] PicContent { set { _picContent = value; } get { return _picContent; } }

        public string PicSize { set { _picSize = value; } get { return ((!string.IsNullOrEmpty(_picSize)) ? _picSize : ""); } }

        public string PicType { set { _picType = value; } get { return ((!string.IsNullOrEmpty(_picType)) ? _picType : ""); } }

        public string PicDesc { set { _picDesc = value; } get { return ((!string.IsNullOrEmpty(_picDesc)) ? _picDesc : ""); } }

        public string RelatingType { set { _relatingType = value; } get { return ((!string.IsNullOrEmpty(_relatingType)) ? _relatingType : ""); } }

        public string RelatingId { set { _relatingId = value; } get { return ((!string.IsNullOrEmpty(_relatingId)) ? _relatingId : ""); } }

        public MsImage() { }
    }
}
